package com.example.dziennikposilkow;

import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class DaniaObiadowe extends DziennikMainActivity {
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
        setContentView(R.layout.activity_dania_obiadowe);
        
        
        final Button button_zupy = (Button) findViewById(R.id.buttonZupy);
 		button_zupy.setOnClickListener(new View.OnClickListener() {
 			public void onClick(View v) {

 				String str = "Zupy"; //Data you want to send        
 				Intent intent = new Intent(DaniaObiadowe.this, TabelaProdukty.class);
 				intent.putExtra("name",str); //here you will add the data into intent to pass bw activites
 				v.getContext().startActivity(intent);
 				
 			}
 			
 		});
        
        
        final Button button_dania_gotowe_obiady = (Button) findViewById(R.id.buttonDaniaGotoweObiady);
 		button_dania_gotowe_obiady.setOnClickListener(new View.OnClickListener() {
 			public void onClick(View v) {

 				String str = "DaniaGotoweObiady"; //Data you want to send        
 				Intent intent = new Intent(DaniaObiadowe.this, TabelaProdukty.class);
 				intent.putExtra("name",str); //here you will add the data into intent to pass bw activites
 				v.getContext().startActivity(intent);
 				
 			}
 			
 		});
 		
	}
}
